package com.jackson.passjava.multi.feign;

import com.jackson.passjava.common.utils.R;
import com.jackson.passjava.storage.entity.StorageEntity;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @author LiYuhang
 * @version 0.1
 * @application
 * @Date 2021/8/24 14:55
 */
@FeignClient("passjava-storage")
public interface StorageFeign {

    /**
     * 信息
     */
    @RequestMapping("/storage/storage/info/{id}")
    public R info(@PathVariable("id") Integer id);

    /**
     * 修改
     */
    @RequestMapping("/storage/storage/update")
    public R update(@RequestBody StorageEntity storage);


}
